﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        GestionUsuarios a = GestionUsuarios.getInstance();
        String password=pass.Text;
        password=FormsAuthentication.HashPasswordForStoringInConfigFile(password, "sha1");
        //Console.WriteLine("Pass: " + password);
        //Label4.Text = a.guardar(nombre.Text, password, alias.Text);
        Label4.Visible = true;
        
        String b = "Pruebas AA";
        this.Session["DatosUsuario"] = b;
        
        Response.Redirect("Conectado.aspx", true);
    }
}
